package com.bluesky.plum.uimodels.render.swing.components.menu;

import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

public class SMenuItem extends
		com.bluesky.plum.uimodels.standard.components.menu.MenuItem {

	protected JMenuItem menuItem;

	public SMenuItem() {
		menuItem = new JMenuItem();

		menuItem.addActionListener(new ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				click();
			}
		});
	}

	@Override
	public Object getNativeComponent() {

		return menuItem;
	}

	@Override
	public void setCaption(String caption) {
		super.setCaption(caption);

		menuItem.setText(caption);

	}
}
